package com.wufeng.springcloud.dao;

import com.wufeng.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PaymentDao {
    Integer create(Payment payment);

    Payment findById(@Param("id") Long id);

    List<Payment> findAll();

    Integer update(Payment payment);

    Integer delete(@Param("id") Long id);
}
